#ifndef GAMER_H
#define GAMER_H

#include <QWidget>
#include<QPainter>
#include<QPixmap>
#include<QPen>
#include<QMouseEvent>
#include<QPaintEvent>
#include<QLabel>
#include<QDebug>
#include<iostream>
#include"chessboard.h"
#include"judge.h"
using namespace std;

namespace Ui {
	class Gamer;
}

class Gamer : public QWidget
{
	Q_OBJECT

public:
	explicit Gamer(QWidget *parent = nullptr);
	~Gamer();
	//重写绘图事件  主窗口加载的时候 调用
	virtual void PaintEvent(QPaintEvent *event);
	//点击下棋子
	void mousePressEvent(QMouseEvent *event);
private:
	//棋盘
	ChessBoard *myboard;
	//裁判
	Judge *judgeman;
//界面
	Ui::Gamer *ui;
};

#endif // GAMER_H
